<template>
	<div>
		<h2>login 登录</h2>
		<button @click="loginClick">登录</button>
	</div>
</template>

<script setup>
	import { useRouter } from 'vue-router'

	const router = useRouter()
	const loginClick = () => {
		const token = 'coderwhy'
		localStorage.setItem('token', token)
		router.push('/order')
	}
</script>

<style scoped></style>
